
function xOut=power2(xIn)
  x = xIn.v;
  xOut.v=power2(x);
  d = 2.*x;
  xOut.d = elelmult_lastindx(d,xIn.d);

  xOut=class(xOut,'deriv1f');
